package com.example.idlefish.GoodsInfo.ActivityContract

import android.content.Context
import android.content.Intent
import androidx.activity.result.contract.ActivityResultContract
import com.example.idlefish.GoodsInfo.KindGoodListActivity

class KindGoodClassifyContract:ActivityResultContract<com.example.idlefish.GoodsInfo.pojo.Pair<String, String>, Unit>() {
    override fun createIntent(context: Context, input: com.example.idlefish.GoodsInfo.pojo.Pair<String, String>): Intent {
        val intent = Intent(context, KindGoodListActivity::class.java)
        intent.putExtra("name", input.first)
        intent.putExtra("kind", input.second)
        return intent
    }

    override fun parseResult(resultCode: Int, intent: Intent?) {

    }
}